import time

class GameState:
    """管理游戏状态的类"""
    def __init__(self):
        self.current_screen = "main"
        self.input_active = None
        self.dropdown_active = None
        self.cursor_visible = True
        self.last_cursor_toggle = time.time()
        self.error_message = ""
        self.error_message_time = 0